<extend name="Base:base" />
<block name="title">{$title}</block>
<block name="content">

    <div class="cf">
        <a class="btn" href="{:U('Admin/Services/addservices')}">新增服务产品</a>
        <!-- 高级搜索 -->
        <div class="search-form fr cf">
            <div class="sleft">
                <input type="text" name="name" class="search-input" value="{:I('name')}" placeholder="请输入菜单名称">
                <a class="sch-btn" href="javascript:;" id="search" url="__SELF__"><i class="btn-search"></i></a>
            </div>
        </div>
    </div>
    <div class="data-table table-striped">
        <form class="ids">
            <table>
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>服务类型名称</th>
                        <th>添加时间</th>
                        <th>图片</th>
                        <th>排序</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <foreach name="data" item="services">
                    <tr>
                        <td>{$services.id}</td>
                        <td>{$services.name}</td>
                        <td>{$services.inserttime|date='Y-m-d H:i',###}</td>
                        <td><img src="{$services.thumb}"/></td>
                        <td>{$services.sort}</td>
                    <td>
                          <a href="{:U('Admin/Services/edit',array('id'=>$services['id']))}">详情|</a>
                        <a href="{:U('Admin/Services/edit',array('id'=>$services['id']))}">修改</a>|
                        <a onclick="return confirm('是否确定要删除?');" href="{:U('Admin/Services/edit',array('id'=>$services['id']))}">删除</a>
                    </td>
                    </tr>
                </foreach>
            </table>
            <div class="digg">{$page}</div>
    </div>
</block>
